package com.leixin.city.${cfg.moduleName}.fallback;

import com.github.pagehelper.Page;
import ${package.Entity}.${entity};
import com.leixin.city.${cfg.moduleName}.feign.${entity}FeignClient;
import feign.hystrix.FallbackFactory;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @Description: TODO
 * @Company : TODO
 * @Date : ${date}
 * @Author : ${author}
 */
@Slf4j
@Component
public class ${entity}Fallback implements FallbackFactory<${entity}FeignClient> {

    @Override
    public ${entity}FeignClient create(Throwable throwable) {

        return new ${entity}FeignClient() {

            @Override
            public Object getAll(Page<${entity}> p, ${entity} model) {
                return null;
            }

            @Override
            public ${entity} getById(String id) {
                return null;
            }

            @Override
            public ${entity} save(${entity} model) {
                return null;
            }

            @Override
            public boolean update(${entity} model) {
                return false;
            }

            @Override
            public int del(String id) {
                return 0;
            }

        };
    }
}
